<%--
  Created by IntelliJ IDEA.
  User: 秋梓
  Date: 2021/12/1
  Time: 23:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%@include file="head.jsp"%><br/><br/>
<%@include file="bookManage.jsp"%>
</body>
</html>

<style>

    .details-show{
        width: 200px;
        height: 100px;
        border: 1px gray solid;
    }
    .details-edit{
        width: 200px;
        height: 100px;
        border: 1px gray solid;
    }
    .details-new{
        width: 710px;
        height: 30px;
        border: 1px gray solid;
        margin-top: 0;
        padding-top: 0;
    }

</style>

<script>
    window.onload = function () {
        var btndetails = document.getElementById("form-details-btn");
        if (btndetails != null) {
            document.getElementById("bookdetails").value=sessionStorage.getItem("bookdetails");
            btndetails.click();
        }
        var btn = document.getElementById("insizeBtn-1");
        if (btn != null) {
            document.getElementById("bookname").value=sessionStorage.getItem("bookname");
            document.getElementById("bookauthor").value=sessionStorage.getItem("bookauthor");
            document.getElementById("booktype").value=sessionStorage.getItem("booktype");
            document.getElementById("bookprice").value=sessionStorage.getItem("bookprice");
            document.getElementById("bookinventory").value=sessionStorage.getItem("bookinventory");
            btn.click();
        }
    }
</script>
